<?php
require_once("db.php");
/*
 * Created on 2011-7-6
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 class UserDao {
 	public static function getUser($user_id) {
		$sql = 'SELECT * FROM user WHERE user_id = "' . $user_id . '"';
		return DB::getRow($sql);
	}
	
	public function getRenRenTokenInfo($user_id){
		$sql = 'SELECT * FROM sync_renren WHERE user_id='.$user_id;
		return DB::getRow($sql);
	}
 }
?>
